<?php /* Smarty version 2.6.14, created on 2015-04-15 15:32:12
         compiled from cps_analytics.index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cps_analytics.index.html', 13, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<table width="100%" border="0" class="adminlist" cellspacing="0">
  <thead>
  <tr>
  <form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
  		<th colspan="5">
  		
      	<?php echo $this->_tpl_vars['systemLang']['channel']; ?>
: 
       <select name="channel" >
       			<option value ="">所有渠道</option>

		    	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['channel_name'],'selected' => $this->_tpl_vars['channel_id']), $this);?>

    	 </select> <input type="submit" name="sb" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" />
    	 </th>
    </tr>
  </form>

  <tr>
 	<th><?php echo $this->_tpl_vars['systemLang']['soft_id']; ?>
</th>
	<th><?php echo $this->_tpl_vars['systemLang']['app']; ?>
</th>

	<th><?php echo $this->_tpl_vars['systemLang']['channel']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['downnum']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['add_date']; ?>
</th>
 

  </tr>
  </thead>
  <tbody>
  <?php $_from = $this->_tpl_vars['app']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['channel']):
?>
  <tr class="row0">
    <td><?php echo $this->_tpl_vars['channel']['soft_id']; ?>
</td>
    <td><?php echo $this->_tpl_vars['channel']['name']; ?>
&nbsp;</td>

   <td><?php echo $this->_tpl_vars['channel_name'][$this->_tpl_vars['channel']['channel_id']]; ?>
&nbsp;</td>
    <td><?php echo $this->_tpl_vars['channel']['down']; ?>
&nbsp;</td>
    <td><?php echo $this->_tpl_vars['channel']['add_date']; ?>
</td>



  </tr>
  <?php endforeach; endif; unset($_from); ?>
  </tbody>
  <tfoot>
  <tr>

	<td colspan="4"><?php echo $this->_tpl_vars['page']; ?>
</td>
  </tr>
  </tfoot>
</table>
</form>
<script>
function getSelectedValue(name){
var obj=document.getElementById(name);
return obj.value;      //直接用其对象的value属性便可获取到
}
function abc(url,a,c){
	ab=getSelectedValue(a);
	//bc=getSelectedValue(b);
	ca=getSelectedValue(c);
	window.location=url+'/'+ab+'/'+ca;
}
</script>